﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Aliphant.Mvvm.XEvent.UI;

namespace Aliphant.UI.AIChat.Models
{
    public class SixLines : BindableBase
    {
        private int _oneLine;
        public int OneLine { get => _oneLine; set => SetProperty(ref _oneLine, value); }

        private int _twoLine;
        public int TwoLine { get => _twoLine; set => SetProperty(ref _twoLine, value); }

        private int _threeLine;
        public int ThreeLine { get => _threeLine; set => SetProperty(ref _threeLine, value); }

        private int _fourLine;
        public int FourLine { get => _fourLine; set => SetProperty(ref _fourLine, value); }

        private int _fiveLine;
        public int FiveLine { get => _fiveLine; set => SetProperty(ref _fiveLine, value); }

        private int _sixLine;
        public int SixLine { get => _sixLine; set => SetProperty(ref _sixLine, value); }

        private string _birthdayWorld = string.Empty;
        public string BirthdayWorld { get => _birthdayWorld; set => SetProperty(ref _birthdayWorld, value); }

        /// <summary>
        /// 生成阴阳爻
        /// 
        /// 6：老阴
        /// 7：少阳
        /// 8：少阴
        /// 9：老阳
        /// </summary>
        /// <param name="bit"></param>
        /// <returns></returns>
        public static string GetYingYang(int bit)
        {
            if (bit == 1)
            {
                return "老阴";
            }
            else if (bit == 2)
            {
                return "​​老阳";
            }
            else if (bit == 3)
            {
                return "少阴";
            }
            else if (bit == 4)
            {
                return "少阳";
            }
            else
            {
                return "";
            }
        }
    }
}
